package com.zlm.common.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.zlm.common.base.BaseEntity;
import java.math.BigDecimal;
import java.sql.Time;
import java.util.Date;

/**
 * 企业自定义上班时间类
 * @Author: duyufu
 * @Date: 2019/5/24 15:34
 */
public class OrgWorkTimeDO extends BaseEntity {

    private static final long serialVersionUID = -5886927913752890396L;
    private Integer workTimeId;

    private Integer orgId;

    private String classSystem;
    @JSONField(format="HH:mm:ss")
    private Date workUp;
    @JSONField(format="HH:mm:ss")
    private Date workOff;
    @JSONField(format="HH:mm:ss")
    private Date restStart;
    @JSONField(format="HH:mm:ss")
    private Date restEnd;
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date createTime;

    private Integer createUser;
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date lastModifyTime;

    private Integer lastModifyUser;

    private Integer alive;

    private Integer punchRange;

    private BigDecimal workTime;

    public Integer getWorkTimeId() {
        return workTimeId;
    }

    public void setWorkTimeId(Integer workTimeId) {
        this.workTimeId = workTimeId;
    }

    public Integer getOrgId() {
        return orgId;
    }

    public void setOrgId(Integer orgId) {
        this.orgId = orgId;
    }

    public String getClassSystem() {
        return classSystem;
    }

    public void setClassSystem(String classSystem) {
        this.classSystem = classSystem;
    }

    public Date getWorkUp() {
        return workUp;
    }

    public void setWorkUp(Date workUp) {
        this.workUp = workUp;
    }

    public Date getWorkOff() {
        return workOff;
    }

    public void setWorkOff(Date workOff) {
        this.workOff = workOff;
    }

    public Date getRestStart() {
        return restStart;
    }

    public void setRestStart(Date restStart) {
        this.restStart = restStart;
    }

    public Date getRestEnd() {
        return restEnd;
    }

    public void setRestEnd(Date restEnd) {
        this.restEnd = restEnd;
    }

    public void setRestEnd(Time restEnd) {
        this.restEnd = restEnd;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getCreateUser() {
        return createUser;
    }

    public void setCreateUser(Integer createUser) {
        this.createUser = createUser;
    }

    public Date getLastModifyTime() {
        return lastModifyTime;
    }

    public void setLastModifyTime(Date lastModifyTime) {
        this.lastModifyTime = lastModifyTime;
    }

    public Integer getLastModifyUser() {
        return lastModifyUser;
    }

    public void setLastModifyUser(Integer lastModifyUser) {
        this.lastModifyUser = lastModifyUser;
    }

    public Integer getAlive() {
        return alive;
    }

    public void setAlive(Integer alive) {
        this.alive = alive;
    }

    public Integer getPunchRange() {
        return punchRange;
    }

    public void setPunchRange(Integer punchRange) {
        this.punchRange = punchRange;
    }

    public BigDecimal getWorkTime() {
        return workTime;
    }

    public void setWorkTime(BigDecimal workTime) {
        this.workTime = workTime;
    }

    @Override
    public String toString() {
        return "OrgWorkTimeDO{" +
                "workTimeId=" + workTimeId +
                ", orgId=" + orgId +
                ", classSystem='" + classSystem + '\'' +
                ", workUp=" + workUp +
                ", workOff=" + workOff +
                ", restStart=" + restStart +
                ", restEnd=" + restEnd +
                ", createTime=" + createTime +
                ", createUser=" + createUser +
                ", lastModifyTime=" + lastModifyTime +
                ", lastModifyUser=" + lastModifyUser +
                ", alive=" + alive +
                ", punchRange=" + punchRange +
                ", workTime=" + workTime +
                '}';
    }
}
